<template>
	<view class="my_container">
		<login v-if="!token"></login>
		<userinfo v-else></userinfo>
	</view>
</template>

<script>
	import {
		mapState
	} from 'vuex'
	import badgeMix from '@/mixins/tabbar-badge.js'
	export default {
		mixins: [badgeMix],
		data() {
			return {

			}
		},
		methods: {

		},
		computed: {
			...mapState('moduleUser', ['token'])
		}
	}
</script>

<style lang="scss">
	page,
	.my_container {
		height: 100%;
	}
</style>